using System;
using System.IO.Ports;

namespace ElevatorLib
{
	public class SerialWriteImplementation : SerialWriteFacade
	{
        private SerialPort port;

        public SerialWriteImplementation(SerialPort port)
        {
            this.port = port;
        }
        public void Write(byte message)
		{
            //message = (byte)((int)message + (int)0x20); //test code
            this.port.Write(new String((char)message, 1));
		}
	}
}


